<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Admin Page</title>
        <link href="./resources/primefaces-swanky-purse/theme.css" rel="stylesheet" type="text/css" />
    </h:head>
    <h:body>
        <h:form>
            <p:messages id="msgs" showDetail="true"/>
            <table align="left" cellpadding="10px">
                <tr>
                    <td width="10%" align="center">
                        <img src="./icon/user.png" alt="My Account" onclick="#{admin.show()}" align="center"/>
                        <br/>
                        <p:commandLink value="My Account" onclick="#{admin.show()}"/>
                    </td>
                    <td width="85%"></td>
                </tr>
                <tr>
                    <td width="10%" align="center">
                        <img src="./icon/check.png" alt="My Account" onclick="control2.show();" align="center"/>
                        <br/>
                        <p:commandLink value="Active Accounts" onclick="control2.show();"/>
                    </td>
                    <td width="85%"></td>
                </tr>
            </table>
        </h:form>
        <p:dialog header="My Information" showEffect="Puff" widgetVar="infor" width="500">
            <ui:include src="Information.xhtml"/>
        </p:dialog>
        <p:dialog header="Active Accounts" showEffect="Puff" widgetVar="control2">  
            <ui:include src="Information.xhtml"/>
        </p:dialog>
        <p:dialog id="change" header="Change Password" showEffect="Puff" widgetVar="changePwd" width="600">  
            <ui:include src="ChangePwd.xhtml"/>
        </p:dialog>

    </h:body>
</html>

